package com.jielin.handling.Annotation;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
@EnableScheduling
@EnableTransactionManagement
@MapperScan(basePackages= {"com.jielin.handling.mapper"})
public class App extends SpringBootServletInitializer{
    @Bean
    public SpringUtil getSpringUtil2() {
        return new SpringUtil();
    }
    
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
        try {
        	App app =new App();
        	app.getSpringUtil2().test();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }
}
